package com.jf3q.sup.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.sup.domain.OutboundShipments;
import com.jf3q.sup.dto.OutboundShipmentsDto;
import com.jf3q.sup.service.OutboundShipmentsService;
import com.jf3q.sup.mapper.OutboundShipmentsMapper;
import com.jf3q.sup.vo.OutboundShipmentsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class OutboundShipmentsServiceImpl extends ServiceImpl<OutboundShipmentsMapper, OutboundShipments>
    implements OutboundShipmentsService{

    @Autowired
    private OutboundShipmentsMapper outboundShipmentsMapper;

    @Override
    public Page<OutboundShipmentsVo> listShipments(OutboundShipmentsDto outboundShipmentsDto) {
        Page<OutboundShipmentsVo> page = new Page<>(outboundShipmentsDto.getPageNum(),outboundShipmentsDto.getPageSize());
        Page<OutboundShipmentsVo> pages = outboundShipmentsMapper.ShipmentsAll(page,outboundShipmentsDto);
        return pages;
    }
}




